%% set seed to use

%% option 1
rng(999);

%% option 2
% try
% s = RandStream('mt19937ar','Seed',999);
% RandStream.setGlobalStream(s);
% catch
% disp('seed did not work')
% end


